32 #ifndef Newt_Population_ManagerH
33 #define Newt_Population_ManagerH
97 int temp = int(round(a_temperature));
98 if (temp <= 1)
return 0.0;
99 if (temp > 29)
return 0.0;
The landscape class containing all environmental and topographical data.
Definition: landscape.h:113
The class to handle all newt population related matters.
Definition: Newt_Population_Manager.h:72
SimpleStatistics m_NewtAdultProdStats
A class for holding the stats on newt adult production.
Definition: Newt_Population_Manager.h:125
virtual void DoFirst()
Things to do before anything else at the start of a timestep
Definition: Newt_Population_Manager.cpp:432
double m_NewtEgg_DDTempRate[31]
An array to hold a precalulated day-degree rate transformation for egg development.
Definition: Newt_Population_Manager.h:119
void InitOutputMetamorphosisStats()
Initialises output mean and variance for meatamorphosis times this year.
Definition: Newt_Population_Manager.cpp:474
int m_BreedingSeasonFlag
Set to 0 when it is newt breeding season, then records the number of days after.
Definition: Newt_Population_Manager.h:117
virtual void TheAOROutputProbe()
Special output functionality.
Definition: Newt_Population_Manager.cpp:451
SimpleStatistics m_NewtMetamorphosisStats
A class for holding the stats on newt metamorphosis development times.
Definition: Newt_Population_Manager.h:121
double GetEggDDRateTransformation(double a_temperature)
Returns the value from the precalulated m_NewtEgg_DDTempRate to get effective day degrees.
Definition: Newt_Population_Manager.h:93
Newt_Population_Manager(Landscape *L)
Newt_Population_Manager Constructor.
Definition: Newt_Population_Manager.cpp:198
void RecordMetamorphosis(int a_age)
Add a new metamorphosis time to the stats record.
Definition: Newt_Population_Manager.cpp:468
void CreateObjects(int ob_type, TAnimal *pvo, struct_Newt *data, int number)
Method for creating a new individual Newt.
Definition: Newt_Population_Manager.cpp:344
void RecordEggProduction(int a_eggs)
Add a new egg production to the stats record.
Definition: Newt_Population_Manager.cpp:462
void SetUnsetBreedingSeason()
Controls when it is breeding season
int IsBreedingSeason()
Returns whether it is breeding season or not.
Definition: Newt_Population_Manager.h:87
SimpleStatistics m_NewtEggProdStats
A class for holding the stats on newt egg production.
Definition: Newt_Population_Manager.h:123
void RecordAdultProduction(int a_adult)
Add a new adult to the stats record.
Definition: Newt_Population_Manager.cpp:456
void SetFreeLivingMortChance()
Calculate the daily background mortality chance based on weather.
Definition: Newt_Population_Manager.cpp:308
void OutputMetamorphosisStats()
Output mean and variance for meatamorphosis times this year.
Definition: Newt_Population_Manager.cpp:481
virtual ~Newt_Population_Manager(void)
Newt_Population_Manager Destructor.
Definition: Newt_Population_Manager.cpp:193
Base class for all population managers.
Definition: PopulationManager.h:424
Definition: PopulationManager.h:324
The base class for all ALMaSS animal classes.
Definition: PopulationManager.h:205
Used for creation of a new Newt object.
Definition: Newt_Population_Manager.h:47
bool reproinhib
Holds a reproductive effect flag.
Definition: Newt_Population_Manager.h:64
double weight
Newt weight.
Definition: Newt_Population_Manager.h:58
vector< unsigned > pondrefs
Born x-coord.
Definition: Newt_Population_Manager.h:56
int y
y-coord
Definition: Newt_Population_Manager.h:54
int age
The newt age.
Definition: Newt_Population_Manager.h:50
int x
x-coord
Definition: Newt_Population_Manager.h:52
Landscape * L
Landscape pointer.
Definition: Newt_Population_Manager.h:60
Newt_Population_Manager * NPM
Newt_Population_Manager pointer.
Definition: Newt_Population_Manager.h:62